package com.meitianiot.module.smart.controller.admin.user;

import com.meitianiot.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.security.PermitAll;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.meitianiot.framework.common.pojo.CommonResult.success;

@Tag(name = "管理后台 - 测试")
@RestController
@RequestMapping("/smart/test")
@Validated
public class AdminTestController {

    @PutMapping("/helloworld")
    @Operation(summary = "你好")
    @PermitAll
    public CommonResult<String> helloWorld() {
        return success("你好世界");
    }

}
